.class public Lcom/netease/newsreader/service/SyncDownLoadService;
.super Landroid/app/IntentService;
.source "SyncDownLoadService.java"


# static fields
.field public static ARTICLE:Ljava/lang/String;

.field public static COLUMN:Ljava/lang/String;

.field public static DOCID:Ljava/lang/String;

.field private static TAG:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 14
    const-string v0, "SyncDownLoadService"

    sput-object v0, Lcom/netease/newsreader/service/SyncDownLoadService;->TAG:Ljava/lang/String;

    .line 15
    const-string v0, "article"

    sput-object v0, Lcom/netease/newsreader/service/SyncDownLoadService;->ARTICLE:Ljava/lang/String;

    .line 16
    const-string v0, "docid"

    sput-object v0, Lcom/netease/newsreader/service/SyncDownLoadService;->DOCID:Ljava/lang/String;

    .line 17
    const-string v0, "column"

    sput-object v0, Lcom/netease/newsreader/service/SyncDownLoadService;->COLUMN:Ljava/lang/String;

    .line 12
    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 20
    sget-object v0, Lcom/netease/newsreader/service/SyncDownLoadService;->TAG:Ljava/lang/String;

    invoke-direct {p0, v0}, Landroid/app/IntentService;-><init>(Ljava/lang/String;)V

    .line 22
    return-void
.end method


# virtual methods
.method protected onHandleIntent(Landroid/content/Intent;)V
    .locals 7
    .parameter "intent"

    .prologue
    .line 28
    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    .line 29
    .local v1, bundle:Landroid/os/Bundle;
    sget-object v4, Lcom/netease/newsreader/service/SyncDownLoadService;->ARTICLE:Ljava/lang/String;

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    .line 30
    .local v0, article:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v4, Lcom/netease/newsreader/service/SyncDownLoadService;->DOCID:Ljava/lang/String;

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 31
    .local v3, docid:Ljava/lang/String;
    sget-object v4, Lcom/netease/newsreader/service/SyncDownLoadService;->COLUMN:Ljava/lang/String;

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 32
    .local v2, column:Ljava/lang/String;
    sget-object v4, Lcom/netease/newsreader/service/SyncDownLoadService;->TAG:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "column:"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ",docid:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/util/Logger;->i(Ljava/lang/String;Ljava/lang/String;)V

    .line 33
    invoke-static {v0, v3, p0, v2}, Lcom/netease/newsreader/util/FileUtils;->writeDetailPageData4Offline(Ljava/util/HashMap;Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;)V

    .line 35
    return-void
.end method
